<template>
  <div id = 'admin'>
    {{page_info}}<br>
    这一行是数据库返回的json{{django_message.list}}
  </div>
</template>

<script>
  export default {
    name: "admin",
    data () {
      return {
        page_info: 'this admin page，欢迎old fish',
        django_message:''
      }
    },
    created() {
      this.$axios.get("http://127.0.0.1:8004/api/show_admin")
        .then(response =>{
          // console.log(response.data)
          this.django_message = response.data
        })
    }
  }
</script>

<style scoped>

</style>
